package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ReceiveInfoMapper;
import com.ruoyi.system.domain.ReceiveInfo;
import com.ruoyi.system.service.IReceiveInfoService;

/**
 * 接收信息Service业务层处理
 *
 * @author chenming
 * @date 2024-10-16
 */
@Service
public class ReceiveInfoServiceImpl extends ServiceImpl<ReceiveInfoMapper, ReceiveInfo> implements IReceiveInfoService
{
    @Autowired
    private ReceiveInfoMapper receiveInfoMapper;

    /**
     * 查询接收信息
     *
     * @param receiveId 接收信息主键
     * @return 接收信息
     */
    @Override
    public ReceiveInfo selectReceiveInfoByReceiveId(Long receiveId)
    {
        return receiveInfoMapper.selectReceiveInfoByReceiveId(receiveId);
    }

    /**
     * 查询接收信息列表
     *
     * @param receiveInfo 接收信息
     * @return 接收信息
     */
    @Override
    public List<ReceiveInfo> selectReceiveInfoList(ReceiveInfo receiveInfo)
    {
        return receiveInfoMapper.selectReceiveInfoList(receiveInfo);
    }

    /**
     * 新增接收信息
     *
     * @param receiveInfo 接收信息
     * @return 结果
     */
    @Override
    public int insertReceiveInfo(ReceiveInfo receiveInfo)
    {
        return receiveInfoMapper.insertReceiveInfo(receiveInfo);
    }

    /**
     * 修改接收信息
     *
     * @param receiveInfo 接收信息
     * @return 结果
     */
    @Override
    public int updateReceiveInfo(ReceiveInfo receiveInfo)
    {
        return receiveInfoMapper.updateReceiveInfo(receiveInfo);
    }

    /**
     * 批量删除接收信息
     *
     * @param receiveIds 需要删除的接收信息主键
     * @return 结果
     */
    @Override
    public int deleteReceiveInfoByReceiveIds(Long[] receiveIds)
    {
        return receiveInfoMapper.deleteReceiveInfoByReceiveIds(receiveIds);
    }

    /**
     * 删除接收信息信息
     *
     * @param receiveId 接收信息主键
     * @return 结果
     */
    @Override
    public int deleteReceiveInfoByReceiveId(Long receiveId)
    {
        return receiveInfoMapper.deleteReceiveInfoByReceiveId(receiveId);
    }
}
